package com.itheima.junit;


import org.junit.Assert;
import org.junit.Test;

/**
 * @author Anomaly
 * @date 2023/2/11 19:08
 */
public class TestUserService {

    @Test
    public void testLogin() {
        UserService userService = new UserService();
        String s = userService.login("admin", "12345");
        //检测预期结果
        Assert.assertEquals("功能有问题", "登录成功", s);
    }

    @Test
    public void testSelectNames() {
        UserService userService = new UserService();
        userService.selectNames();
    }
}
